package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.LoanInfoDO;
import com.mhc.suzuki.dal.query.LoanInfoQuery;

import java.util.List;


/**
 * Manager for LoanInfo.
 */
public interface LoanInfoManager {
    /**
     * query count by query condition.
     */
    int countByQuery(LoanInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(LoanInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(LoanInfoDO record);

    /**
     * insert selective.
     */
    long insertSelective(LoanInfoDO record);

    /**
     * select by query condition.
     */
    List<LoanInfoDO> selectByQuery(LoanInfoQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<LoanInfoDO> selectByQueryWithPage(LoanInfoQuery query);

    /**
     * select by primary key.
     */
    LoanInfoDO selectByPrimaryKey(Long id);

    /**
     * select by order no.
     */
    LoanInfoDO selectByOrderNo(String orderNo);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( LoanInfoDO record,  LoanInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(LoanInfoDO record, LoanInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(LoanInfoDO record);
}
